import request from '@/utils/request'

export function listPage(data) {
  return request({
    url: '/order/listPage',
    method: 'post',
    data
  })
}

export function getYZ() {
  return request({
    url: '/order/getYz',
    method: 'get'
  })
}

export function getProgress(token) {
  return request({
    url: '/order/getProgress',
    method: 'get',
    params: { token }
  })
}
export function jdAuthGetCode() {
  return request({
    url: '/order/jdAuthGetCode',
    method: 'get'
  })
}

export function getJd() {
  return request({
    url: '/order/getJd',
    method: 'get'
  })
}

export function deleteOrder(id) {
  return request({
    url: '/order/delete',
    method: 'get',
    params: { id }
  })
}

export function batchDeleteOrder(data) {
  return request({
    url: '/order/batchDelete',
    method: 'post',
    data
  })
}

export function batchDelivery(data) {
  return request({
    url: '/order/delivery',
    method: 'post',
    data
  })
}

export function updateRemark(id,tradeRemark) {
  return request({
    url: '/order/updateRemark',
    method: 'get',
    params: { id, tradeRemark }
  })
}
